<template>
 <div>
     <h1>我是父组件</h1>
     <h3>{{msgFather}}</h3>
     <h3>obj:{{obj}}</h3>
     <hr>
     <!-- 调用 -->
     <!-- 父组件向子组件通信 -->
     <Son msg="666" str="我是字符串" :msgFather="msgFather" :num="num" :obj="obj"></Son>
 </div>
</template>

<script>
// 导入子组件
import Son from './Son.vue'
export default {
    data(){
         return{
             msgFather:'我是父组件的msg',
             num:11,
             obj:{
                 id:1,
                 name:'张三',
                 age:20
             },
         }
    },
    created(){},
    methods:{},
    components:{
        // 注册
        Son
    }
}

</script>
<style scoped>
</style>